<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
	String path = request.getContextPath();
	String merchantUrl = request.getParameter("merchantUrl");
	String orderId = request.getParameter("orderId");
	String amount = request.getParameter("amount");
%>
<title>模拟网上银行支付</title>
<link href="<%=path%>/css/sinfo.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css">
<link href="<%=path%>/css/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function toSubmit(){
	var formObj = document.frmMockBank;
	var cardNo = parseInt(formObj.cardNo.value);
	if(!cardNo>0){
		alert("卡号输入错误，请重新输入！");
		formObj.cardNo.focus();
		return;
	}
	if(formObj.password.value==""){
		alert("请输入密码！");
		formObj.password.focus();
		return;
	}
	formObj.submit();
}
</script>
</head>

<body>
<form action="mockBankNetPayResult.jsp" name="frmMockBank" method="post">
  <input type="hidden" name="merchantUrl" value="<%=merchantUrl%>"/>
  <input type="hidden" name="orderId" value="<%=orderId%>"/>
  <input type="hidden" name="amount" value="<%=amount%>"/>
  <table width="732" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="0EA2D6">
    <tr> 
      <td  bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="25" align="center" background="<%=path%>/images/new/blue_pic_01.gif"><strong><font color="#FFFFFF" style="font-size:12px"> 
              欢迎使用模拟银行在线支付平台</font></strong></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="8" ><img src="<%=path%>/images/new/blue_pic_02.gif" width="726" height="8" /></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="8">
          <tr> 
            <td> <div class="panel"> 
                <table width="98%" border="0" cellspacing="1" cellpadding="4">
                  <tr bgcolor="#F0FAFD"> 
                    <td width="50%" align="right"><strong>商户：</strong></td>
                    <td>模拟商户</td>
                  </tr>
                  <tr> 
                    <td width="50%" align="right"><strong>订单号：</strong></td>
                    <td> 
                      <%=orderId%>
                    </td>
                  </tr>
                  <tr bgcolor="#F0FAFD"> 
                    <td width="50%" align="right"><strong>金额：</strong></td>
                    <td> 
                      <%=amount%>
                      元</td>
                  </tr>
                  <tr> 
                    <td align="right"><strong>卡号：</strong></td>
                    <td><input type="text" name="cardNo"></td>
                  </tr>
                  <tr bgcolor="#F0FAFD"> 
                    <td align="right"><strong>密码：</strong></td>
                    <td> 
                      <input type="password" name="password"></td>
                  </tr>
                </table>
                <table width="98%" border="0" cellspacing="1" cellpadding="4">
                  <tr> 
                    <td  align="right"><hr noshade="noshade" size="2" color="#0EA2D6" /></td>
                  </tr>
                </table>
                <table width="98%" border="0" cellspacing="0" cellpadding="4">
                  <tr> 
                    <td align="center"><button type="button" class="button_3" onClick="toSubmit()">确定</button></td>
                  </tr>
                </table>
              </div></td>
          </tr>
        </table></td>
    </tr>
  </table>
  </form>
</body>

</html>
